import QtQuick
import QtQuick.Particles

Rectangle {
    id: root
    width: 400
    height: 400
    color: "black"

    ParticleSystem {
        id: particleSystem
        anchors.fill: parent

        ImageParticle {
            source: "qrc:/images/dot.png"
        }

        Emitter {
            anchors.bottom: parent.bottom
            anchors.horizontalCenter: parent.horizontalCenter
            width: 1
            height: 1
            emitRate: 50
            lifeSpan: 3000
            size: 16

            velocity: PointDirection {
                y: -150
                yVariation: 50
                x: 0
                xVariation: 100
            }

            acceleration: PointDirection {
                y: 50
            }
        }
    }
} 
